package com.chen.business.system.businesssystem.controller;

import com.chen.business.system.businesssystem.service.BusinessServiceImpl;
import com.chen.order.system.ordersystem.entity.OrderEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 业务模板
 * @author :master
 */
@RequestMapping("/business")
@RestController
public class BusinessController {


    @Autowired
    private BusinessServiceImpl  service;

    @RequestMapping("/placeOrder")
    public String placeOrder(@RequestBody OrderEntity entity) {
        service.placeOrder(entity);
        return "111";
    }
}
